package org.song.service.impl;

import org.song.mapper.ThumbsUpMapper;
import org.song.model.dto.ThumbsUpDto;
import org.song.model.vo.ThumbsUp;
import org.song.service.ThumbsUpService;
import org.song.service.impl.common.AbstractBaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ThumbsUpServiceImpl extends AbstractBaseServiceImpl implements ThumbsUpService {

    @Autowired( required = true )
    @Qualifier( value = "thumbsUpMapper")
    private ThumbsUpMapper thumbsUpMapper;

    @Override
    public List<ThumbsUp> listThumbsUps(@NonNull ThumbsUpDto thumbsUpDto) {
        return thumbsUpMapper.listThumbsUps(thumbsUpDto);
    }
    

    @Override
    public int deleteThumbsUp( @NonNull ThumbsUp thumbsUp) {
        return thumbsUpMapper.deleteThumbsUp(thumbsUp);
    }

    @Override
    public int insertThumbsUp( @NonNull ThumbsUp thumbsUp) {
        return thumbsUpMapper.insertThumbsUp(thumbsUp);
    }

    @Override
    public int updateThumbsUp( @NonNull ThumbsUp thumbsUp) {
        return thumbsUpMapper.updateThumbsUp(thumbsUp);
    }
    
}
